﻿using System;
using BLL;

public partial class PCBA_ViewPCBA_ViewPCBAVTestbySN : System.Web.UI.Page
{
    PCBAVTest amd;
    PCBAVItem amds;

    public PCBA_ViewPCBA_ViewPCBAVTestbySN()
    {
        amd = new PCBAVTest();
        amds = new PCBAVItem();
    }

    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void Button1_Click(object sender, EventArgs e)
    {
        string pCBASN = this.TextBox1.Text.Trim();
        this.GridView1.DataSource = amd.GetPCBAVtestbySN(pCBASN);
        this.GridView1.DataBind();
        this.GridView2.DataSource = amds.GetPCBAVItembySN(pCBASN);
        this.GridView2.DataBind();
    }
}
